package io.renren.modules.api.service;

import io.renren.modules.api.entity.UserFrequentlyRouteEntity;
import io.renren.modules.api.entity.UserFrequentlyRouteSectionEntity;

import java.util.List;
import java.util.Map;

/**
 * 用户常用路线
 * 
 * @author wangdajiang
 * @email 2750757088@qq.com
 * @date 2018-03-21 15:47:02
 */
public interface UserFrequentlyRouteService {
	
	UserFrequentlyRouteEntity queryObject(Long id);
	
	List<UserFrequentlyRouteEntity> queryList(Map<String, Object> map);
	
	int queryTotal(Map<String, Object> map);
	
	void save(UserFrequentlyRouteEntity userFrequentlyRoute);
	
	void update(UserFrequentlyRouteEntity userFrequentlyRoute);
	
	void delete(Long id);
	
	void deleteBatch(Long[] ids);

	void addFrequentlyRoute(UserFrequentlyRouteEntity userFrequentlyRoute,
							List<UserFrequentlyRouteSectionEntity> userFrequentlyRouteSections);

	List<Map<String,Object>> queryByUserId(Long userId);

    void modifyFrequentlyRoute(UserFrequentlyRouteEntity userFrequentlyRoute,
							   List<UserFrequentlyRouteSectionEntity> userFrequentlyRouteSections);


}
